package com.acme.bankapp.exceptions;

import com.acme.bankapp.domain.account.Account;

public class NotEnoughFundsException extends BankException {

    private Account account;

    public NotEnoughFundsException(Account account) {
        this.account = account;
    }

    @Override
    public String getMessage() {
        return "available " + account.maximumAmountWithDraw();
    }
}
